package com.hrms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hrms.dao.TrainDao;
import com.hrms.pojo.Train;
import com.hrms.service.TrainService;

/**
 * 类名称：TrainServiceImpl.java<br>
 * 类描述：后台功能实现类<br>
 * 创建时间：2017年3月20日, 上午11:22:19
 */
@Service("trainService")
public class TrainServiceImpl implements TrainService {
	
	@Resource
	private TrainDao trainDao;

	public void addTrain(Train train) {
		trainDao.addTrain(train); 
	}

	public void deleteTrain(int id) {
		trainDao.deleteTrain(id);
	}

	public List<Train> selectAllTrain() {
		return trainDao.selectAllTrain();
	}

	public Train selectByIdTrain(int id) {
		return trainDao.selectByIdTrain(id);
	}

}
